package apiDay02;

public class RegDemo05 {
    public static void main(String[] args) {
        /**
         *
         */
        /*
        String reg="\\w{6}";
        System.out.println(reg);
        String s1="Jerry1";
        String s2="Tom-22";
        String s3="Andy";
        System.out.println(s1.matches(reg));
        System.out.println(s2.matches(reg));
        System.out.println(s3.matches(reg));

         */
        String reg1 ="\\w{8,}";
        String s4="akjdk";
        String s5="12345678";
        String s6="sanmnmcvnxm122222222";
        System.out.println(s4.matches(reg1));
        System.out.println(s5.matches(reg1));
        System.out.println(s6.matches(reg1));
    }
}
